<% title "Новости" %>

<div id="conteiner">
    <div id="left">
        <div id="leftCont">
        		<%= link_to "Редактировать новости", admin_posts_path if logged_in? %><br/>
        		<h2>НОВОСТИ</h2>
            <% @posts.each do |p| %>
		          <div class="indexNewsBlock">
		          	<div class="date"><%= p.created_at.strftime("%d.%m.%Y")%></div>
		              <div class="title"><%= link_to p.title, post_path(p) %></div>
		              <%= text_teaser(p.content, 250) %>
		          </div>
            <% end %>
        </div>
    </div>
</div>

<div id="right">
		<%= render :partial=>"includes/currency" %>
		
    <%= render :partial=>"includes/banners" %>
</div>
